package com.tiany.java_study_exercise;

import com.tiany.java_study.Animal;

public class Main {
    public static void main(String[] args) {

        System.out.println("************************************");
        //Circle类
        Circle circle = new Circle();
        circle.radius = 4;
        circle.getArea(circle.radius);
        circle.getPerimeter();

        System.out.println("************************************");
        //Student类
        Student stu1 = new Student();
        Student[] stu;
        stu = stu1.random_info();
        stu1.print_all(stu);
        stu1.print_state(stu, 3);
        stu1.sort(stu);

        System.out.println("************************************");
        //MyDate类
        MyDate myDate = new MyDate();
        MyDate herDate = new MyDate();
        myDate.year = 2000;
        myDate.month = 1;
        myDate.day = 1;
        herDate.year = 2000;
        herDate.month = 5;
        herDate.day = 20;
        myDate.print();
        herDate.print();

        System.out.println("************************************");
        //Overload类
        Overload overload = new Overload();
        overload.mOL(2);
        overload.mOL("delicious");
        overload.mOL(2, 3);
        overload.max(12, 34);
        overload.max(12.1, 23.3);
        overload.max(11.1, 23.2, 54.2);

        System.out.println("************************************");
        //PassObj类
        PassObject passObject = new PassObject();
        Circle circle1 = new Circle();
        passObject.printAreas(circle1, 5);

        System.out.println("************************************");
        //Animal类
        Animal animal=new Animal();
        animal.name="dog";
        animal.eat();
        animal.show();
        animal.setAge(1);
        animal.setLegs(6);
        animal.show();
    }
}
